<template>
	<view class="bounced">
		<view class="bouncedPre">
			<text class="biaoti">请选择就诊人</text>
			<text class="iconfont icon-chacha icoRight" @click="showTk"></text>
		</view>

		<view class="bouncedIn">
			<view class="Left">
				<view class="LeftPre">
					<text>蒋峰</text>
					<text class="benren">本人</text>
				</view>
				<view class="bouncedNext">
					<text>622***********0909</text>
				</view>
			</view>
			<text class="iconfont icon-xiangyou_fanhui bouncedNextRight"></text>
		</view>
		<view class="cutOffRule"></view>
	</view>
</template>

<script>
	import {
		computed
	} from 'vue'
	import {
		ref
	} from 'vue'
	export default {
		setup(props, context) {

			const state = ref(false)
			const showTk = () => {
				context.emit('setState', state)
			}
			return {
				state,
				showTk
			}
		}
	}
</script>

<style lang="scss">
	.cutOffRule {
		border: 1px solid #f2f2f2;
		margin: 0 20rpx;
	}

	//弹框
	.bounced {
		z-index: 2;
		display: flex;
		flex-direction: column;
		width: 100%;
		bottom: 0rpx;
		height: 400rpx;
		position: absolute;
		background-color: #fff;
		border-radius: 5% 5% 0 0;
		right: 0rpx;

		//上
		.bouncedPre {
			text-align: center;
			margin-top: 20rpx;

			.biaoti {
				font-size: 35rpx;
			}

			.icoRight {
				position: relative;
				left: 175rpx;
				color: #d8d8d8;
			}
		}

		//中
		.bouncedIn {
			display: flex;
			flex-direction: row;
			height: 120rpx;
			margin-top: 16rpx;
			justify-content: space-between;

			.bouncedNextRight {
				line-height: 120rpx;
				margin-right: 30rpx;
				color: #d7d7d7;
			}

			.Left {
				display: flex;
				flex-direction: column;
				justify-content: center;

				.bouncedNext {
					font-size: 20rpx;
					color: #aaaaad;
					margin-left: 30rpx;
				}

				.LeftPre {
					margin-left: 30rpx;
					margin-bottom: 10rpx;

					.benren {
						font-size: 12px;
						line-height: 50rpx;
						display: inline-block;
						width: 100rpx;
						margin-left: 15rpx;
						height: 50rpx;
						text-align: center;
						color: #7498ff;
						border-radius: 40%;
						background-color: #e0ecfe;
					}


				}
			}

		}
	}
</style>
